package lion.framework.core.db.datasource;

import javax.sql.DataSource;

import lion.dev.lang.MapJ;
import lion.framework.core.db.anno.DataSourceProvider;

@DataSourceProvider("jdbc")
public class JDBCDataSourceProvider implements IDataSourceProvider {

	private MapJ config;

	private JDBCDataSourceProvider(MapJ config) {

		this.config = config;
	}

	@Override
	public DataSource getDataSource() {

		return new JDBCDataSource(this.config);
	}

}
